package com.rbac.service.test;

import com.common.Result;
import com.domain.dto.test.UserRolePermissionDto;
import com.rbac.pojo.Role;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface RoleService {
    Result getList(Integer pageNum, Integer pageSize);
    Result delete(Integer id);
    Role getRoleById(Integer id);
    Result save(Role role);
    public Result update(Role role);

    List<Role> getRoleAllById();

    Result updateRole(UserRolePermissionDto roleDto);

    //获取角色对应的用户
    Result getUserRole(Integer roleId);

    Result getRolePermission(Integer roleId);
}
